#include "loginform.h"

#include "ui_loginform.h"

LoginForm::LoginForm(QWidget* parent) : BasicWindows(parent),
                                        ui(new Ui::LoginForm) {
    ui->setupUi(this);

    ui->comboBox_account->addItem("100001");
    ui->comboBox_account->addItem("100002");
    ui->comboBox_account->addItem("100003");

    ui->comboBox_account->installEventFilter(this);
}

LoginForm::~LoginForm() {
    delete ui;
}

bool LoginForm::eventFilter(QObject* obj, QEvent* event) {
    if (obj == ui->comboBox_account) {
        if (event->type() == QEvent::MouseMove) {
            return true;
        }
    }
    return QDialog::eventFilter(obj, event);
}